/*
 * @Author: zhang gen yuan
 * @Date: 2021-05-13 10:36:07
 * @Descripttion: 
 */
import http from './../http';
import serialize from './../utils'
export default{
    code(){
        return http.get('/blade-auth/oauth/captcha')
    },
    login(data){
        return http.post('/blade-auth/oauth/token?'+ serialize(data))
    },
    logout(){
        return http.get('/blade-auth/oauth/logout')
    },
    menus(){
        return http.get('/blade-system/menu/routes')
    }

}